<?php

namespace App\Providers;

use App\Repositories\Contract\CellRepository;
use App\Repositories\Contract\ColumnRepository;
use App\Repositories\Contract\ProjectRepository;
use App\Repositories\Contract\RowRepository;
use App\Repositories\Contract\UserRelationRepository;
use App\Repositories\Eloquent\CellRepositoryEloquent;
use App\Repositories\Eloquent\ColumnRepositoryEloquent;
use App\Repositories\Eloquent\ProjectRepositoryEloquent;
use App\Repositories\Eloquent\RowRepositoryEloquent;
use App\Repositories\Eloquent\UserRelationRepositoryEloquent;
use Illuminate\Support\ServiceProvider;

class RepositoryServiceProvider extends ServiceProvider
{
    /**
     * Register services.
     *
     * @return void
     */
    public function register()
    {
        $this->app->singleton(ProjectRepository::class, ProjectRepositoryEloquent::class);
        $this->app->singleton(ColumnRepository::class, ColumnRepositoryEloquent::class);
        $this->app->singleton(RowRepository::class, RowRepositoryEloquent::class);
        $this->app->singleton(CellRepository::class, CellRepositoryEloquent::class);
        $this->app->singleton(UserRelationRepository::class,UserRelationRepositoryEloquent::class);
    }

    /**
     * Bootstrap services.
     *
     * @return void
     */
    public function boot()
    {
        //
    }
}
